<%@page language="java" contentType="text/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String base = (String) application.getAttribute("base");
	String imageURL = (String) application.getAttribute("imageURL");
%>
<%@ taglib prefix="ora" uri="orataglib"%>
<%@page import="eBrain.beans.User"%>

<div class="header"><a href="<%=base%>"><img class="logo"
	src="images/eBrain.png" /></a> <%--Show username, logout and MyBrain link for the user which is login--%>
<%
	if (session.getAttribute("validUser") != null) {
		User user = (User) session.getAttribute("validUser");
		out.print("<br>Hi, <b>" + user.getUsername() + "</b>");
%>
<div class="modernbricksmenu2">
<ul>
	<li><a href="<%=base%>?action=logout">Logout</a></li>
	<li><a href="<%=base%>?action=meBrain">meBrain</a></li>
	<li><a href="<%=base%>?action=myProfile">myProfile</a></li>

	<%
		if (user.getUsername().equals("mar.wuestemann")){	
			out.print("<li><a class=\"link2\" href=\"" + base
					+ "?action=salestat\">SaleStat</a></li></ul>");}
	%>
	<%
		} else {
	%>
</ul>
<br>
<br>
<div class="registry">
<form action="eBrain?action=dologin" method="post">Name: <input
	name="userName" value="" size="10"> Password: <input
	type="password" name="password" value="" size="10"> <input
	type="submit" value="Login"></form>
<a href="<%=base%>?action=toAddUser">register</a>
<%
	}
%>
</div>

</div>